package Message.Game
{
    import Framework.Serialize.*;
    import Message.Public.*;

    public class SPlayerItemUpdate extends Object
    {
        public var updateType:int;
        public var fromPosType:int;
        public var posIndex:int;
        public var updateAmount:int;
        public var playerItem:SPlayerItem;

        public function SPlayerItemUpdate()
        {
            
        }

        public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.updateType);
            param1.writeInt(this.fromPosType);
            param1.writeInt(this.posIndex);
            param1.writeInt(this.updateAmount);
            this.playerItem.__write(param1);
            
        }

        public function __read(param1:SerializeStream) : void
        {
            this.updateType = param1.readInt();
            this.fromPosType = param1.readInt();
            this.posIndex = param1.readInt();
            this.updateAmount = param1.readInt();
            this.playerItem = new SPlayerItem();
            this.playerItem.__read(param1);
            
        }

    }
}
